import React from 'react';
import {Link} from 'react-router';

export default class Film extends React.Component{
    constructor(props){
        super(props)
    }
    render(){
        return (
            <Link to={'/films/'+this.props.id} className={"film-item cate-"+this.props.cat} id={this.props.id}>
                <span>{this.props.cat}</span>
                <h2>{this.props.report.title}</h2>
                <div>{this.props.report.content}</div>
                <em>{this.props.date}</em>
            </Link>
        )
    }
}